import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    di:{},
    login1:0,
  },
  getters:{
    getDing(state){
      return state.di;
    }
  },
  mutations: {
    setDing(state,value){
      // console.log(22,value);
      state.di=value
      // console.log(state)
    },
    setLogin(state,value){
      console.log(value);
      state.login1=value;
      console.log(state);

    }
  },
  actions: {
    myDing(store,value){
      console.log(store,value)
      store.state.di=value;
    }
  },
  modules: {
  }
})
